<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/gymjsp/common/head.jsp"%>
<div class="right">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>器材管理 >> 器材修改页面</span>
    </div>
    <div class="providerAdd">
        <form id="equipmentForm" name="equipmentForm" method="post" action="${pageContext.request.contextPath }/gymjsp/equipment.do">
            <input type="hidden" name="method" value="modifyexe">
            <input type="hidden" name="eid" value="${equipment.id }"/>
            <div>
                <label for="equipmentname">器材名称：</label>
                <input type="text" name="equipmentname" id="equipmentname" value="${equipment.name }">
                <font color="red"></font>
            </div>
            <div>
                <label for="equimentStatus">状态：</label>
                <select name="equimentStatus" id="equimentStatus">
                    <option value="可使用" ${equipment.status == '可使用' ? 'selected' : ''}>可使用</option>
                    <option value="在维护" ${equipment.status == '在维护' ? 'selected' : ''}>在维护</option>
                </select>
                <font color="red"></font>
            </div>
            <div>
                <label for="description">器材描述：</label>
                <input type="text" name="description" id="description" value="${equipment.description }">
                <font color="red"></font>
            </div>
            <div class="providerAddBtn">
                <input type="button" name="save" id="save" value="保存" />
                <input type="button" id="back" name="back" value="返回"/>
            </div>
        </form>
    </div>
</div>
</section>
<%@include file="/gymjsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/equipmentmodify.js"></script>
